import 'package:logging/logging.dart';

class Logging {
  Logging._privateConstructor();

  static final Logging instance = Logging._privateConstructor();

  late Logger _logger;

  Future<void> init() async {
    Logger.root.level = Level.ALL;
    Logger.root.onRecord.listen((record) {
      print('${record.level.name}: ${record.time}: ${record.message}');
    });
    _logger = Logger("MY_PHOTOS");
  }

  void $(Object? message) {
    _logger.info(message);
  }
}
